package com.dnjn.happiness.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.annotation.Excel;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 关联表-img对象 biz_advice_image
 *
 * @author happiness
 * @date 2023-10-18
 */
@Schema(name = "AdviceImage", description = "关联表-img")
@Accessors(chain = true)
@Getter
@Setter
@TableName("biz_advice_image")
public class AdviceImage
{
    private static final long serialVersionUID = 1L;

    /** PK */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    
    

    /** 表biz_advice   的`advice_id` */
    @Schema(description = "表biz_advice   的`advice_id`")
    @Excel(name = "表biz_advice   的`advice_id`")
    private Long adviceId;

    /** $column.columnComment */
    @Schema(description = "${comment}")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String imageUrl;

    /**  */
    @Schema(description = "")
    @Excel(name = "")
    private Long ordinal;





    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("adviceId", getAdviceId())
                .append("imageUrl", getImageUrl())
                .append("ordinal", getOrdinal())
                .toString();
    }
}
